<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Web Print</title>

<script type="text/javascript">
	function print(){
		var newWin = window.open("/webPrint.do");
		setTimeout(function(){
			newWin.focus();
			//调用打印功能	
			newWin.print();
	           //打印完毕自动关闭新窗体
			newWin.close();
		},1000);
	}
</script>
</head>
<body>
	<button type="button" onclick="print()">打印</button>
</body>
</html>